package com.inspsys.inspection.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.inspsys.common.annotation.Excel;
import com.inspsys.common.core.domain.BaseEntity;

/**
 * 巡检任务对象 inspection_task
 *
 * @author inspsys
 * @date 2025-01-08
 */
public class InspectionTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String orderNumber;

    /** 任务专业 */
    @Excel(name = "任务专业")
    private String taskType;

    /** 区段 */
    @Excel(name = "区段")
    private String section;

    /** 平台 */
    @Excel(name = "平台")
    private String platform;

    /** 作业规范 */
    @Excel(name = "作业规范")
    private String specifications;

    /** 作业开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "作业开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskStartTime;

    /** 作业结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "作业结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskEndTime;

    /** 采集 */
    @Excel(name = "采集")
    private String gather;

    /** 检查 */
    @Excel(name = "检查")
    private String inspect;

    /** 处理 */
    @Excel(name = "处理")
    private String dealWith;

    /** 复核 */
    @Excel(name = "复核")
    private String review;

    /** 报告 */
    @Excel(name = "报告")
    private String report;

    /** 检修 */
    @Excel(name = "检修")
    private String maintenance;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setSection(String section) {
        this.section = section;
    }

    public String getSection() {
        return section;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getPlatform() {
        return platform;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public void setTaskStartTime(Date taskStartTime) {
        this.taskStartTime = taskStartTime;
    }

    public Date getTaskStartTime() {
        return taskStartTime;
    }

    public void setTaskEndTime(Date taskEndTime) {
        this.taskEndTime = taskEndTime;
    }

    public Date getTaskEndTime() {
        return taskEndTime;
    }

    public void setGather(String gather) {
        this.gather = gather;
    }

    public String getGather() {
        return gather;
    }

    public void setInspect(String inspect) {
        this.inspect = inspect;
    }

    public String getInspect() {
        return inspect;
    }

    public void setDealWith(String dealWith) {
        this.dealWith = dealWith;
    }

    public String getDealWith() {
        return dealWith;
    }

    public void setReview(String review) {
        this.review = review;
    }

    public String getReview() {
        return review;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public String getReport() {
        return report;
    }

    public void setMaintenance(String maintenance) {
        this.maintenance = maintenance;
    }

    public String getMaintenance() {
        return maintenance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderNumber", getOrderNumber())
                .append("taskType", getTaskType())
                .append("section", getSection())
                .append("platform", getPlatform())
                .append("taskStartTime", getTaskStartTime())
                .append("taskEndTime", getTaskEndTime())
                .append("gather", getGather())
                .append("inspect", getInspect())
                .append("dealWith", getDealWith())
                .append("review", getReview())
                .append("report", getReport())
                .append("maintenance", getMaintenance())
                .toString();
    }
}
